//  终端登录
<template>
    <div class="ms-title" :style="dataTable">
        <div ref="gantt" style="height: 100%"></div>
    </div>
</template>

<script>
    import 'dhtmlx-gantt'
    const insurance = require( '../../api/insurance.js');        //  接口js引用
    export default {
        name: 'gantt',
        props: {
            tasks: {
                type: Object,
                default () {
                    return {data: [], links: []}
                }
            }
        },
        data: function(){
            return {
                dataTable:{'height':document.documentElement.clientHeight-30+'px'},
            }
        },
        methods: {

        },
        mounted(){
            gantt.init(this.$refs.gantt);
            gantt.parse(this.$props.tasks)
        }
    }


</script>
<style src="../../../static/css/datasource.css"></style>
<style scoped>
    @import "~dhtmlx-gantt/codebase/dhtmlxgantt.css";
</style>

